import { httpData } from '@/utils/types';
import { post, get } from '@/utils/request';

export default {
    //*********************************************生产管理-充装工单*********************************************** */
    // 生产管理-充装工单
    fillingPlanList: (data?: httpData) => {
        return get('/app/order/filling/plan/list', data);
    },

    // 生产管理-充装工单-充装登记主页
    fillingRecordMain: (data?: httpData) => {
        return get('/app/filling/record/main', data);
    },

    // 生产管理-充装工单-充装批次关联气瓶分页
    cylinderRelateList: (data?: httpData) => {
        return get('/app/filling/batch/cylinder/relate/list', data);
    },

    //*********************************************充前检查*********************************************** */
    // 生产管理-充装工单-充前检查-扫码
    beforeInspectScan: (data?: httpData) => {
        return get('/app/filling/before/inspect/scan', data);
    },

    // 生产管理-充装工单-充前检查-新增编辑
    beforeInspectSave: (data?: httpData) => {
        return post('/app/filling/before/inspect/save', data);
    },

    //*********************************************充后检查*********************************************** */
    // 生产管理-充装工单-充后检查-扫码
    afterInspectScan: (data?: httpData) => {
        return get('/app/filling/after/inspect/scan', data);
    },

    // 生产管理-充装工单-充后检查-新增编辑
    afterInspectSave: (data?: httpData) => {
        return post('/app/filling/after/inspect/save', data);
    },

    //*********************************************充前登记批号*********************************************** */

    // 生产管理-充装工单-充装批号新增编辑
    fillingBatchSave: (data?: httpData) => {
        return post('/app/filling/batch/save', data);
    },

    // 生产管理-充装工单-获取充装批号
    fillingBatchGetNumber: (data?: httpData) => {
        return get('/app/filling/batch/getNumber', data);
    },

    // 生产管理-充装工单-充装批号删除
    fillingBatchDeleteBatch: (data?: httpData) => {
        return post('/app/filling/batch/deleteBatch', data);
    },

    //*********************************************充前登记*********************************************** */
    // 生产管理-充装工单-充前登记-主页
    beforeRegistrationMain: (data?: httpData) => {
        return get('/app/filling/before/registration/main', data);
    },

    // 生产管理-充装工单-充前登记-删除
    beforeRegistrationDeleteBatch: (data?: httpData) => {
        return post('/app/filling/before/registration/deleteBatch', data);
    },

    // 生产管理-充装工单-充前登记-分页
    beforeRegistrationList: (data?: httpData) => {
        return get('/app/filling/before/registration/list', data);
    },

    // 生产管理-充装工单-充前登记-新增编辑
    beforeRegistrationSave: (data?: httpData) => {
        return post('/app/filling/before/registration/save', data);
    },

    // 生产管理-充装工单-充前登记-扫码
    beforeRegistrationScan: (data?: httpData) => {
        return get('/app/filling/before/registration/scan', data);
    },

    // 充装工单:结束登记
    fillingBatchCloseBatch: (data?: httpData) => {
        return post('/app/filling/batch/closeBatch', data);
    },

    //*********************************************充装登记*********************************************** */
    // 生产管理-充装工单-充装登记-主页
    registrationIndex: (data?: httpData) => {
        return get('/app/filling/registration/list', data);
    },

    // 生产管理-充装工单-充装登记-保存提交
    registrationSave: (data?: httpData) => {
        return post('/app/filling/registration/saveOrSubmit', data);
    },

    // 生产管理-充装工单-充装登记-回显
    registrationReview: (data?: httpData) => {
        return get('/app/filling/registration/saveEcho', data);
    },

    //*********************************************充前(后)试漏*********************************************** */
    //生产管理-充装工单-充前试漏 主页
    fillingLeakMainBefore: (data?: httpData) => {
        return get('/app/filling/leak/test/main/before', data);
    },

    //生产管理-充装工单-充后试漏 主页
    fillingLeakMainAfter: (data?: httpData) => {
        return get('/app/filling/leak/test/main/after', data);
    },

    //生产管理-充装工单-充装试漏 分页
    fillingLeakTestList: (data?: httpData) => {
        return get('/app/filling/leak/test/list', data);
    },

    // 生产管理-充装工单-充装试漏 删除
    fillingLeakTestDeleteBatch: (data?: httpData) => {
        return post('/app/filling/leak/test/deleteBatch', data);
    },

    //生产管理-充装工单-充装试漏 详情
    fillingLeakTestDetail: (data?: httpData) => {
        return get('/app/filling/leak/test/detail', data);
    },

    //生产管理-充装工单-充装试漏 新增编辑
    fillingLeakTestSave: (data?: httpData) => {
        return post('/app/filling/leak/test/save', data);
    },

    //*********************************************抽空置换*********************************************** */
    // 生产管理-充装工单-抽空置换-主页
    fillingReplaceMain: (data?: httpData) => {
        return get('/app/filling/replace/ment/main', data);
    },

    // 生产管理-充装工单-抽空置换-编辑查询
    getVoByAppFillingBatchId: (data?: httpData) => {
        return get('/app/filling/replace/ment/getVoByAppFillingBatchId', data);
    },

    // 生产管理-充装工单-抽空置换-气瓶跳过
    // fillingReplaceSkip: (data?: httpData) => {
    //     return post('/app/filling/replace/ment/skip', data);
    // },

    // app生产管理-充装工单-抽空置换-过程跳过
    replaceMentSkipAll: (data?: httpData) => {
        return post('/app/filling/replace/ment/skip/all', data);
    },

    // 生产管理-充装工单-抽空置换-抽空前详情分页
    fillingReplaceBeforeList: (data?: httpData) => {
        return get('/app/filling/replace/ment/before/list', data);
    },

    // 生产管理-充装工单-抽空置换-抽空前详情详情
    fillingReplaceBeforeDetail: (data?: httpData) => {
        return get('/app/filling/replace/ment/before/detail', data);
    },

    // 生产管理-充装工单-抽空置换-抽空前详情新增编辑
    fillingReplaceBeforeSave: (data?: httpData) => {
        return post('/app/filling/replace/ment/before/save', data);
    },

    // 生产管理-充装工单-抽空置换-抽空前详情删除
    fillingReplaceBeforeDelete: (data?: httpData) => {
        return post('/app/filling/replace/ment/before/delete', data);
    },

    // 生产管理-充装工单-抽空置换-结束置换
    fillingReplaceFinishedBefore: (data?: httpData) => {
        return post('/app/filling/replace/ment/finished/before', data);
    },

    // 生产管理-充装工单-抽空置换-校验气瓶皮重与档案皮重是否相同
    fillingReplaceTareWeightCheckByAchieveTareWeight: (data?: httpData) => {
        return post('/app/filling/replace/ment/save/tareWeight/check', data);
    },

    // 生产管理-充装工单-气柜-抽空置换-校验气瓶皮重与客户皮重是否相同
    // 生产管理-充装工单-非气柜-充前登记-校验气瓶皮重与客户皮重是否相同
    fillingReplaceTareWeightCheckByCustomerTareWeight: (data?: httpData) => {
        return post('/app/filling/replace/ment/save/tareWeight/check/customer', data);
    },

    // 生产管理-充装工单-抽空置换-气瓶列表保存提交
    fillingReplaceSubmitTareWeight: (data?: httpData) => {
        return post('/app/filling/replace/ment/save/tareWeight ', data);
    },

    //*********************************************抽空后录入*********************************************** */
    // 生产管理-充装工单-抽空置换-抽空后详情详情
    fillingReplaceAfterDetail: (data?: httpData) => {
        return get('/app/filling/replace/ment/after/getByAppFillingReplaceMentId', data);
    },

    // 生产管理-充装工单-抽空置换-抽空后详情新增编辑
    fillingReplaceAfterSave: (data?: httpData) => {
        return post('/app/filling/replace/ment/after/save', data);
    },
    //*********************************************充装登记主页*********************************************** */
    // 生产管理-充装工单-充后登记-主页
    fillingAfterRegistrationMain: (data?: httpData) => {
        return get('/app/filling/after/registration/main', data);
    },

    // 生产管理-充装工单-充后登记-编辑查询
    afterGetVoByAppFillingBatchId: (data?: httpData) => {
        return get('/app/filling/after/registration/getVoByAppFillingBatchId', data);
    },

    // 生产管理-充装工单-充后登记-结束登记
    fillingAfterRegistrationFinished: (data?: httpData) => {
        return post('/app/filling/after/registration/finished', data);
    },

    // 生产管理-充装工单-充后登记-扫码
    fillingAfterRegistrationDetailScan: (data?: httpData) => {
        return get('/app/filling/after/registration/detail/scan', data);
    },

    // 生产管理-充装工单-充后登记-新增编辑
    fillingAfterRegistrationDetailSave: (data?: httpData) => {
        return post('/app/filling/after/registration/detail/save', data);
    },

    beforeInspectList: (data?: httpData) => {
        return get('/app/filling/before/inspect/list', data);
    },

    beforeInspectInfo: (data?: httpData) => {
        return get('/filling/record/detail/before', data);
    },

    beforeRegistrationInfo: (data?: httpData) => {
        return get('/filling/record/detail/before/registration', data);
    },

    replaceMentInfo: (data?: httpData) => {
        return get('/filling/record/detail/replace/ment', data);
    },

    afterInspectList: (data?: httpData) => {
        return get('/app/filling/after/inspect/list', data);
    },

    afterInspectDetail: (data?: httpData) => {
        return get('/filling/record/detail/after', data);
    },

    afterRegistrationDetail: (data?: httpData) => {
        return get('/filling/record/detail/after/registration', data);
    },
};
